<%--
*
* 描述：非法操作
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.sky.common.filter.ExcuteFilter"/>
<jsp:directive.page import="com.sky.common.filter.MethodFilter"/>
<jsp:directive.page import="com.sky.common.filter.IPFilter"/>
<jsp:directive.page import="com.sky.common.filter.RefreshFilter"/>
<jsp:directive.page import="com.sky.common.filter.XSSFilter"/>
<jsp:directive.page import="com.sky.common.filter.KeywordFilter"/>
<jsp:directive.page import="com.sky.common.filter.SecurityFilter"/>
<jsp:directive.page import="com.sky.common.string.StringUtils"/>
<jsp:directive.page import="com.sky.common.filter.RefererFilter"/>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>非法操作</title>
	<%@include file="/share/header.jsp"%>
    <META HTTP-EQUIV="Refresh" CONTENT="3;URL=<%=path%>/index.jsp">
	<link href="<%=path%>/main/dsnc/css/errorPage.min.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/main/dsnc/css/common.min.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript">
	onLoad();
	function onLoad(){
		if(top!=window){//当前页面不是容器页面，则自动把最外层页面跳转成当前页面
			top.document.location.replace(document.location);
		}
	}
</script>
<%
  Map<String,String> types=new HashMap<String,String>();
  types.put(ExcuteFilter.class.getName(),"访问禁止路径下的执行文件");
  types.put(MethodFilter.class.getName(),"访问禁止的HTTP方法");
  types.put(IPFilter.class.getName(),"IP["+request.getRemoteAddr()+"]被列入黑名单");
  types.put(RefreshFilter.class.getName(),"恶意扫描攻击");
  types.put(XSSFilter.class.getName(),"跨站点脚本攻击");
  types.put(KeywordFilter.class.getName(),"请求中含有非法关键字");
  types.put(SecurityFilter.class.getName(),"访问受控地址");
  types.put(RefererFilter.class.getName(),"Referer伪造");
  response.setStatus(500);
%>
<body>
	<div class="errorMed">
	  <div class="errorType"><br /></div>
	  <div class="errorIcon"><img src="<%=path%>/main/dsnc/image/icon_unpermission.png" width="128" height="128" /></div>
	  <div class="errorContant">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
	      <td height="100" align="left" valign="top">非法操作【<span style="color:red;"><%=StringUtils.isEmpty(request.getParameter("type"))?"未知":types.get(request.getParameter("type"))%></span>】，请重新登录<br />3秒后系统自动跳转到首页...</td>
	      </tr>
	    <tr>
	      <td height="50">
	        <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
	          <tr>
	            <td><div class="btnGreen" onMouseOver="this.className='btnGreenHover'" onMouseOut="this.className='btnGreen'" onMouseDown="this.className='btnGreenClick'" onMouseUp="this.className='btnGreenHover'" onclick="top.document.location.replace('<%=path%>/index.jsp')">返回登录</div></td>
	            <td><div class="btnGreen" onMouseOver="this.className='btnGreenHover'" onMouseOut="this.className='btnGreen'" onMouseDown="this.className='btnGreenClick'" onMouseUp="this.className='btnGreenHover'" onclick="closeWindow(top)">关闭页面</div></td>
	          </tr>
	        </table>
	        </td>
	      </tr>
	  </table>
	  </div>
	</div>	
</body>
</html>
